package com.fintech.third.dao.message;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dragon.common.entity.search.Searchable;
import com.dragon.common.repository.mybatis.paginator.domain.PageBounds;
import com.fintech.third.model.message.AcPushMessage;


public interface AcPushMessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(AcPushMessage record);

    AcPushMessage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AcPushMessage record);

	List<Map<String, Object>> listAcPushMessage(Searchable searchable, PageBounds pageBounds);

	Integer unreadCountByUserId(String userId);

	void setReadByUserId(@Param("id")String id, @Param("userId")String userId);
	
	Map<String, Object> selectSMSSendByMobile(String mobile);
	
	
	/**
	 * 查询客户未读信息条数 核心后台用
	 * @param mobile
	 * @return
	 */
	Integer selectCount(String mobile);
}